package com.cct.digitalarchapi.controller;

import com.cct.digitalarchapi.common.Response;
import com.cct.digitalarchapi.service.ChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @FileName ChartController
 * @Description 图表控制器
 * @Author Created by chenmingzhe
 * @Date 2023/12/14
 **/
@RestController
@RequestMapping(value = "/chart")
public class ChartController {

    @Autowired
    private ChartService chartService;
    /**
     * 获取档案数据
     */
    @RequestMapping(value = "/getTodaySubmit",method = RequestMethod.POST)
    public Response addArchApplication(){
        return  chartService.getTodaySubmit();
    }

    /**
    *获取通过率
    */
    @RequestMapping(value = "/getPassRate",method = RequestMethod.POST)
    public Response getPassRate(){
        return  chartService.getPassRate();
    }
}
